# encoding: utf-8
"""
@author: 夏洛
@QQ: 1972386194
@file: 04-xxx.py
"""
import time
from selenium import webdriver


browser = webdriver.Chrome()
# browser.get('https://www.baidu.com/')
# browser.get('https://www.qimingpian.cn/finosda/project/pinvestment')
# browser.get('https://pic.netbian.com/4kmeinv/index.html')
# browser.back()
# time.sleep(1)
# browser.forward()
# browser.close()

'''
baidu  qimiing  pic  qiming  pic  quit 
'''


browser.get('https://www.baidu.com')
browser.execute_script('window.open()')
print(browser.window_handles)
browser.switch_to_window(browser.window_handles[1])
browser.get('https://www.taobao.com')
time.sleep(1)
browser.switch_to_window(browser.window_handles[0])
browser.get('https://pic.netbian.com')



